<?php defined('SYSPATH') or die('No direct script access.') ?>
<table class="table table-condensed table-hover">
	  <thead>
      <tr>
          <th>Дата</th>
          <th>PIN оп.</th>
          <th>№ заявки</th>
          <th>№ договора</th>          
          <th>ФИО</th>
          <th>Тематика</th>
          <th>Статус</th>
      </tr>
  </thead>
  <tbody>  
<?php
foreach($leads as &$lead)
{
?>
    <tr class="ajaxmodal" data-toggle="modal" href="<?php echo URL::site($controller.'/'.$action) ?>/short/<?php echo $lead['leadsid'] ?>" data-target="#ajaxmodal">
        <td><?php echo date('d.m.Y H:i:s',$lead['date']) ?></td>
        <td><?php echo $lead['operator_pin'] ?></td>
        <td><?php echo $lead['lead_id'] ?></td>
        <td><?php /*echo $lead['contract_id']*/ ?></td>
        <td></td>
        <td></td>
        <td><span class="label label-default">Не обработано</span></td>
    </tr>
<?php
}
?>
  </tbody>
</table>
<?php echo $page_links ?>